package com.cucn.ingmall.order.dao;

import com.cucn.ingmall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 * 
 * @author kouchaojie
 * @email kou1688@foxmail.com
 * @date 2021-11-17 18:34:16
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    Integer getOrderStatusBySn(@Param("orderSn") String orderSn);

    /**
     * 修改订单状态
     * @param orderSn
     * @param status
     */
    void updateOrderStatus(@Param("orderSn") String orderSn, @Param("status") Integer status);

    int insertSelective(OrderEntity orderEntity);

    OrderEntity selectOneByOrderSn(@Param("orderSn") String orderSn);
}
